<div id="editGovGridObjRelModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
  aria-hidden="true">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-body">
        <h3 class="m-t-none m-b ">修改网格对象关系</h3>
        <div class="ibox-content">
          <div>
            <div>
              <div class="form-group row">
                <label class="col-sm-2 col-form-label">对象类型编码</label>
                <div class="col-sm-10">
                  <select class="custom-select" v-model="editGovGridObjRelInfo.objTypeCd"
                    @change="selectEditObj(editGovGridObjRelInfo.objTypeCd)">
                    <option selected disabled value="">必填，请选择类型编码</option>
                    <option v-for="(item,index) in editGovGridObjRelInfo.objTypeCds" :key="index"
                      :value="item.statusCd">
                      {{item.name}}</option>
                  </select>
                </div>
              </div>
              <div class="form-group row"
                v-if="editGovGridObjRelInfo.objTypeCd == '9002' || editGovGridObjRelInfo.objTypeCd == '9003'">
                <label class="col-sm-2 col-form-label">选择小区</label>
                <div class="col-sm-10">
                  <select class="custom-select" v-model="editGovGridObjRelInfo.communityId"
                    @change="selecEditFloor(editGovGridObjRelInfo.communityId)">
                    <option selected disabled value="">必填，请选择选择小区</option>
                    <option v-for="(item,index) in editGovGridObjRelInfo.govCommunitys" :key="index"
                      :value="item.govCommunityId">
                      {{item.communityName}}</option>
                  </select>
                </div>
              </div>
              <div class="form-group row" v-if="editGovGridObjRelInfo.objTypeCd == '9003'">
                <label class="col-sm-2 col-form-label">选择建筑物</label>
                <div class="col-sm-10">
                  <select class="custom-select" v-model="editGovGridObjRelInfo.floorId"
                    @change="setEditObj(editGovGridObjRelInfo.floorId)">
                    <option selected disabled value="">必填，请选择建筑物</option>
                    <option v-for="(item,index) in editGovGridObjRelInfo.govFloors" :key="index"
                      :value="item.govFloorId">
                      {{item.floorName}}</option>
                  </select>
                </div>
              </div>
              <div class="form-group row" v-if="editGovGridObjRelInfo.objTypeCd == '9001'">
                <label class="col-sm-2 col-form-label">对象名称</label>
                <div class="col-sm-10">
                  <input v-model="editGovGridObjRelInfo.objName" type="text" disabled="disabled" placeholder="对象名称"
                    class="form-control">
                </div>
              </div>
              <div class="form-group row">
                <label class="col-sm-2 col-form-label">开始时间</label>
                <div class="col-sm-10">
                  <input v-model="editGovGridObjRelInfo.startTime" type="text" placeholder="必填，请填写开始时间"
                    class="form-control startTimes">
                </div>
              </div>
              <div class="form-group row">
                <label class="col-sm-2 col-form-label">结束时间</label>
                <div class="col-sm-10">
                  <input v-model="editGovGridObjRelInfo.endTime" type="text" placeholder="必填，请填写结束时间"
                    class="form-control endTimes">
                </div>
              </div>
              <div class="form-group row">
                <label class="col-sm-2 col-form-label">工作状态</label>
                <div class="col-sm-10">
                  <select class="custom-select" v-model="editGovGridObjRelInfo.workStatus">
                    <option selected disabled value="">必填，请选择工作状态</option>
                    <option value="1001">在职</option>
                    <option value="1002">离职</option>
                  </select>
                </div>
              </div>
              <div class="form-group row">
                <label class="col-sm-2 col-form-label">备注</label>
                <div class="col-sm-10">
                  <input v-model="editGovGridObjRelInfo.ramark" type="text" placeholder="必填，请填写备注" class="form-control">
                </div>
              </div>
              <div class="ibox-content">
                <button class="btn btn-primary float-right" type="button" v-on:click="editGovGridObjRel()"><i
                    class="fa fa-check"></i>&nbsp;保存</button>
                <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                  data-dismiss="modal">取消</button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>